package com.wuzhiming.istudy.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: Comment
 * @Description: 评论实体表
 * @Author:zhimingw
 * @Version 1.0
 * @since 2022/2/25 18:32
 */
@Data
public class Comment implements Serializable {
    private static final long serialVersionUID = -23488851154769108L;

    /**
    * 主键id
    */
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;


    private String username;
    /**
    * 课程id
    */
    private Integer courseId;

    /**
     *  关联课程
     */
    private Course course;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 留言时间
     */
    private Date time;

    /**
     * 评论状态
     * */
    private Integer status;

    public Comment(){

    }

    public Comment(Integer userId,Integer status){
        this.userId = userId;
        this.status = status;
    }
}
